package cn.edu.sasu.junit;

import cn.edu.sasu.webservice.NewsService;
import cn.edu.sasu.webservice.impl.NewsServiceImpl;
import android.test.AndroidTestCase;
import android.util.Log;

public class WeatherTest extends AndroidTestCase {

	public void WeatherTest_1() throws Exception {
		NewsService weatherUtil = new NewsServiceImpl();
		Log.i("Test", weatherUtil.resquestWeather()[0]);
	}
	public void WeatherTest_scode() throws Exception {
		NewsService weatherUtil = new NewsServiceImpl();
		Log.i("Test", "f  "+weatherUtil.getSCityCode());
	}
	
	public void WeatherTest_ccode() throws Exception {
		NewsService weatherUtil = new NewsServiceImpl();
		Log.i("Test", "f  "+weatherUtil.getCCityCode());
	}
	public void WeatherTest_resquestWeather() throws Exception {
		NewsService weatherUtil = new NewsServiceImpl();
		String[] weatherInfo = weatherUtil.resquestWeather();
		for (int i = 0; i < weatherInfo.length; i++) {
			Log.i("Test", " ff "+weatherInfo[i]);
		}
	}
	
	
}
